package com.jarvan.repository;

import com.jarvan.model.Record;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RecordRepository extends JpaRepository<Record, Integer> {
    List<Record> findAllBySeatStatus(Integer seatStatus);
    List<Record> findAllByDepartureDate(String departureDate);
    Record findFirstByDepartureDateAndBindTrain(String departureDate, String trainId);
}
